package com.ruoyi.pg.evaluate.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.PageUtils;
import com.ruoyi.pg.evaluate.domain.PgPlan;
import com.ruoyi.pg.evaluate.vo.PgPlanVo;
import com.ruoyi.pg.evaluate.mapper.PgPlanMapper;
import com.ruoyi.pg.evaluate.service.IPgPlanService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 评估计划Service业务层处理
 *
 * @author Ming
 * @date 2025-08-22
 */
@Service
public class PgPlanServiceImpl extends ServiceImpl<PgPlanMapper, PgPlan> implements IPgPlanService {

    @Override
    public TableDataInfo<PgPlanVo> queryList(PgPlanVo entity) {
        return PageUtils.buildDataInfo(this.baseMapper.queryList(PageUtils.buildPage(), entity));
    }

    @Override
    public List<PgPlanVo> queryAll(PgPlanVo entity) {
        return this.baseMapper.queryList(entity);
    }

    @Override
    public PgPlanVo queryById(Long id) {
        return this.baseMapper.queryById(id);
    }
}
